package yifeng.spring.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import org.apache.log4j.BasicConfigurator;
import org.junit.Test;

public class Main {
	@Test
	public void testAOP() {
		BasicConfigurator.configure();
		ApplicationContext ctx = new FileSystemXmlApplicationContext("bean.xml");
		ITest test = (ITest) ctx.getBean("myAOPProxy");
		test.doTest();
		test.executeTest();
	}
}
